package app.cn.com.school.activity

import android.content.Context
import android.os.Bundle
import app.cn.com.school.R
import app.cn.com.school.databinding.ActivitySortBinding

class SortActivity : BaseActivity<ActivitySortBinding>() {
    override fun initBindingVar() {
    }

    override fun initTitle() {
        binding.titlebar.back.setOnClickListener { finish() }
    }

    lateinit var context: Context
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        initBinding(R.layout.activity_sort)
        context = this
        initView()
    }

    private fun initView() {
        var type = this.intent.getStringExtra("type").toInt()
        when (type) {
            0 -> {
                binding.titlebar.title.text = "会员等级选择"
            }
            1 -> {
                binding.titlebar.title.text = "选择省"
            }
            2 -> {
                binding.titlebar.title.text = "分类"
            }

        }


    }


}
